package com.fysports.web.model.user;

import com.jfinal.log.Log;
import com.fysports.web.model.BaseModel;

import java.util.Date;

/**
* Class title: DB实体 - user_address -  <br/>
* Describe:                    <br/>
* Created by [CodeGenerator]   <br/>
* Date : 2015-12-28 09:16:42       <br/>
* Project : weixin           <br/>
*/
public class UserAddress extends BaseModel<UserAddress>{
    /**/
    private static Log log = Log.getLog(UserAddress.class);
    public final static UserAddress dao = new UserAddress();
    /*数据库字段静态变量*/
    /** useruuid  用户uuid*/
    public final static String COL_USERUUID="useruuid";
    /** province  省份 */
    public final static String COL_PROVINCE="province";
    /** city  城市 */
    public final static String COL_CITY="city";
    /** area  区域 */
    public final static String COL_AREA="area";
    /** street  街道 */
    public final static String COL_STREET="street";
    /** address  地址全称 */
    public final static String COL_ADDRESS="address";
    /** isdefault  是否默认1是0否 */
    public final static String COL_ISDEFAULT="isdefault";
    /** remark   */
    public final static String COL_REMARK="remark";
    public UserAddress() {
        if (this.getStr(COL_UUID) == null || this.getStr(COL_UUID).length() == 0) {
        this.set(COL_UUID, generateUUID());
        }
    }


    /**
     * 获取会员实例
     * @return
     */
    public BizUser getUser(){
        return BizUser.dao.findById(this.getUseruuid());
    }

    public String getUseruuid(){
        return this.get(COL_USERUUID);
    }
    public void setUseruuid(String useruuid){
        this.set(COL_USERUUID,useruuid);
    }
    public String getProvince(){
            return this.getStr(COL_PROVINCE);
    }
    public void setProvince(String province){
        this.set(COL_PROVINCE,province);
    }
    public String getCity(){
            return this.getStr(COL_CITY);
    }
    public void setCity(String city){
        this.set(COL_CITY,city);
    }
    public String getArea(){
            return this.getStr(COL_AREA);
    }
    public void setArea(String area){
        this.set(COL_AREA,area);
    }
    public String getStreet(){
            return this.getStr(COL_STREET);
    }
    public void setStreet(String street){
        this.set(COL_STREET,street);
    }
    public String getAddress(){
            return this.getStr(COL_ADDRESS);
    }
    public void setAddress(String address){
        this.set(COL_ADDRESS,address);
    }
    public Boolean getIsdefault(){
        return this.getBoolean(COL_ISDEFAULT);
    }
    public void setIsdefault(Boolean isdefault){
        this.set(COL_ISDEFAULT,isdefault);
    }
    public String getLiveflag(){
            return this.getStr(COL_LIVEFLAG);
    }
    public void setLiveflag(String liveflag){
        this.set(COL_LIVEFLAG,liveflag);
    }
    public Date getCreatetime(){
            return this.getDate(COL_CREATETIME);
    }
    public void setCreatetime(Date createtime){
        this.set(COL_CREATETIME,createtime);
    }
    public String getRemark(){
            return this.getStr(COL_REMARK);
    }
    public void setRemark(String remark){
        this.set(COL_REMARK,remark);
    }
}